package com.zqk.principle.openclose;

/**
 * @Package com.zqk.principle.openclose
 * @Description:TODO
 * @Author 张乾坤
 * @Create: 2018/10/25
 * @Version 1.0
 * @Update: message
 */
public class Test {
    public static void main(String[] args) {
        ICourse iCourse=new JavaDiscountCourse(1,"java设计模式",399d);
        JavaDiscountCourse javaDiscountCourse=(JavaDiscountCourse)iCourse;
        System.out.println(iCourse.getId()+"   "+iCourse.getName()+"    "+iCourse.getprice()+"   "+javaDiscountCourse.getDiscountPrice());
    }
}
